package org.mycub.server;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import org.mycub.server.services.BusStationsService;
import org.mycub.server.services.FreeParkingsService;
import org.mycub.server.services.InternetAccessesService;
import org.mycub.server.services.PaidParkingsService;
import org.mycub.server.services.PublicToiletsService;
import org.mycub.server.services.TramStationsService;
import org.mycub.server.services.VCUBStationsService;


public class ServerApplications extends Application {

    private static final Set<Class<?>> CLASSES;

    static {
        HashSet<Class<?>> tmp = new HashSet<Class<?>>();
     
        // TODO Ajouter les webservices
        tmp.add(TramStationsService.class);
        tmp.add(BusStationsService.class);
        tmp.add(VCUBStationsService.class);
        tmp.add(FreeParkingsService.class);
        tmp.add(PaidParkingsService.class);
        tmp.add(InternetAccessesService.class);
        tmp.add(PublicToiletsService.class);
        
        CLASSES = Collections.unmodifiableSet(tmp);
    }

    @Override
    public Set<Class<?>> getClasses(){

       return  CLASSES;
    }    


}
